/**
 * @file updata_iot.h
 * @brief This is the header file for updata_iot.c, which is the porting file for the AT command
 * module.
 * @version 1.0
 *
 */

#ifndef _UPDATA_DATA_IOT_H
#define _UPDATA_DATA_IOT_H
#include "stdint.h"
#ifdef __cplusplus
extern "C" {
#endif

uint8_t Pubsh_AO_information(uint16_t *up_ao_sum, int signal_num, char **out);
uint8_t Pubsh_AI_information(uint16_t *up_ai_sum, int signal_num, char **out);
uint8_t Pubsh_DO_information(uint8_t *up_do_sum, int signal_num, char **out);
uint8_t Pubsh_DI_information(uint8_t *up_di_sum, int signal_num, char **out);

void updata_ao(uint16_t *acc, uint8_t length);
void updata_ai(uint16_t *acc, uint8_t length);
void updata_do(uint8_t *acc, uint8_t length);
void updata_di(uint8_t *acc, uint8_t length);

void parse_json_ao(const char *json_str);
#ifdef __cplusplus
}
#endif

#endif /*_UPDATA_DATA_IOT_H*/
